/*
 *    Copyright (c) 2018-2025, cloud All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: cloud
 */

package com.fuyao.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * 扶摇编码生成类
 *
 * @author liyue
 * @date 2021-11-15 09:56:07
 */
@Data
@TableName("sys_server_number")
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "扶摇编码生成类")
public class SysServerNumber extends Model<SysServerNumber> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId
	@ApiModelProperty(value = "主键ID")
	private Long id;

	/**
	 * 类型
	 */
	@ApiModelProperty(value = "类型")
	private String numbertype;

	/**
	 * 编码
	 */
	@ApiModelProperty(value = "编码")
	private String code;

	/**
	 * 父级编码
	 */
	@ApiModelProperty(value = "父级编码")
	private String parentCode;

	/**
	 * 编码数值
	 */
	@ApiModelProperty(value = "编码数值")
	private Long value;

	/**
	 * 编码数值
	 */
	@ApiModelProperty(value = "格式化位数(0~9)")
	private Integer num;

	/**
	 * 编码数值
	 */
	@ApiModelProperty(value = "编码名称")
	private String codeName;

	public SysServerNumber(String type, String code, long value) {
		this.numbertype = type;
		this.code = code;
		this.value = value;
	}
}
